package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * InnoDB free: 10240 kB
 * </p>
 *
 * @author ly
 * @since 2022-06-13
 */
@Data
public class Comment2 implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cmid", type = IdType.AUTO)
    private Integer cmid;

    private Integer uid;

    private String message;

    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
}
